package kercar.manager;

import kercar.robot.Robot;

public class MovementManager {

	/************************************************************************* BLOCK
	 * ATTRIBUTES
	 *******************************************************************************/
	
	private Robot _robot;
	
	/************************************************************************* BLOCK
	 * CONSTRUCTOR
	 *******************************************************************************/
	
	public MovementManager() {
	}

	/************************************************************************* BLOCK
	 * PUBLIC METHODS
	 *******************************************************************************/
	
	public void moveForward(double speed) {
		_robot.moveForward(speed);
	}

	public void moveBackward(double speed) {
		_robot.moveBackward(speed);
	}

	public void turn(int angle) {
		_robot.turn(angle);
	}

	public void stopMoving() {
		_robot.stopMoving();
	}
	
	public void setRobot(Robot robot) {
		_robot = robot;
	}

}